<template>
  <div class="block">
    <div class="title">
      <h4>{{title}}</h4>
    </div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: String
  }
}
</script>

<style lang="less">
.block {
  margin-bottom: 10px;
  .title {
    background-color: #fff;
    padding: 15px 0;

    h4 {
      padding: 0 15px;
      border-left: 2px solid red;
    }
  }
}
</style>
